package com.itheima.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.github.pagehelper.Page;
import com.itheima.shop.entity.Category;

public interface CategoryMapper {
	
//	@Select("select * from tab_category order by cid")
//	public Page<Category> findAll0();
	
	@Select("select * from tab_category order by cid asc")
	public List<Category> findAll();
	
	@Select("select * from tab_category where cid = #{cid}")
	public Category findByCid(int cid);
}
